package com.axjy.web;

import com.axjy.pojo.Ck;
import com.axjy.service.CkService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dell on 2018/1/27.
 */
@RestController
@RequestMapping("/sys/ck")
public class CkHandler {

    @Resource
    private CkService ckService;

    @GetMapping("/list")
    public List<Ck> list(){
        return ckService.list();
    }

}
